import { createSSRApp } from "vue";
import * as Pinia from "pinia";
import App from "./App.vue";

import "@/static/base.scss";
import "@/static/icon/iconfont.css";

import Message from "@/utils/Message";
import Request from "@/utils/Request";
import Api from "@/utils/Api";
export function createApp() {
  const app = createSSRApp(App);

  app.use(Pinia.createPinia());

  app.config.globalProperties.Message = Message;
  app.config.globalProperties.Request = Request;
  app.config.globalProperties.Api = Api;
  return {
    app,
  };
}
